package com.frank.oj.service.admin.system;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.frank.model.entity.common.Announcement;
import com.frank.oj.common.exception.StatusFailException;
import com.frank.oj.model.vo.AnnouncementVO;

/**
 * @author frank
 * @Date 2024/3/28
 */
public interface AnnouncementService {
    IPage<AnnouncementVO> getAnnouncementList(Integer limit, Integer currentPage);

    void addAnnouncement(Announcement announcement) throws StatusFailException;

    void deleteAnnouncement(Long aid) throws StatusFailException;

    void updateAnnouncement(Announcement announcement) throws StatusFailException;
}
